package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 班级实体类
 */
@Data
@NoArgsConstructor
public class ClassBean {
    /**班级编号*/
    private int id;
    /**班级名称*/
    private String name;
    /**开班时间*/
    private LocalDate time = LocalDate.now();
    /**带班老师*/
    private String teacher;

    public ClassBean(String name, String teacher) {
        this.name = name;
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", time=" + time +
                ", teacher='" + teacher + '\'' +
                '}' + "\n";
    }
}
